﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="EditTeamsScreen.aspx.cs" Inherits="METU_CMT.EditTeamsScreen" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<asp:Table runat="server" Width="70%" HorizontalAlign="Center" CssClass="chp-grid" style="font-size: 15px; margin-left:150px; margin-top:50px;">
    <asp:TableRow runat="server">
        <asp:TableCell runat="server">Team Name</asp:TableCell>
        <asp:TableCell ID="TableCell1" runat="server">
            <asp:TextBox runat="server" ID="txtTeamName" CssClass="chp-text-field"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTeamName"
                    Display="Dynamic" ErrorMessage="RequiredFieldValidator" ValidationGroup="MKE">* Team name is required!</asp:RequiredFieldValidator>
        </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow ID="TableRow2" runat="server">
        <asp:TableCell ID="TableCell3" runat="server"></asp:TableCell>
        <asp:TableCell ID="TableCell4" runat="server">
            <asp:Button ID="btnAdd" runat="server" Text="Add" ValidationGroup="MKE" OnClick="OnBtnAddClicked" CssClass="chp-button-red"/>
        </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow ID="TableRow1" runat="server">
        <asp:TableCell ID="TableCell2" runat="server" ColumnSpan="2">
            <asp:GridView ID="dtgTeams" runat="server" OnRowCommand="OnDtgTeamsRowCommand" AutoGenerateColumns="false" OnRowDeleting="OnDtgTeamsRowDeleting"
        ShowHeaderWhenEmpty="true" CssClass="chp-grid">
        <Columns>
            <asp:BoundField DataField="TeamName" HeaderText="TeamName" />
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:LinkButton runat="server" ID="lnkBtnDelete" Text="Delete" CommandName="Delete"
                        CommandArgument='<%# Bind("TeamId") %>'></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
        </asp:TableCell>
    </asp:TableRow>
</asp:Table>


    
    
    
</asp:Content>
